"""cj URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import  path
from django.conf.urls import include, url
from tp import views
from login import views1
urlpatterns = [
    path('admin/', admin.site.urls),
    url('denglu',views1.denglu,name="denglu"),
    url('logout',views1.logout,name="logout"),
    url('index',views.index,name="index"),
    url('iplist',views.iplist,name="iplist"),
    url(r'^$',views1.denglu),
    # url(r'^index/$',views.index),
    path('all_net/',views.all_net,name='allnet'),
    path('update_on_off_net/',views.update_on_off_net,name='updatenet'),#更新主机是否支持唤醒
    path('all_shutdown/',views.all_shutdown,name='allshu'),
    path('all_noshutdown/',views.all_noshutdown,name='allnoshut'),
    path('one_shutdown/',views.shut_one),
    path('noshut_one/',views.noshut_one,name='noshuone'),
    path('reboot_one/',views.reboot_one,name="rebootone"),
    path('net_one/',views.net_one,name="netone"),
    path('ip_del/',views.ip_del,name="delone"),
    path('find/', views.find, name='find'),
    path('add/', views.add, name='new'),
    path('edit/', views.edit, name='edit'),
    path('off/', views.off, name='off'),
    path('on/', views.on, name='on'),
    path('import_xls/', views.importxls, name='importxls'),
    path('del_all/', views.delall, name='delall'),
    path('log/', views.log, name='log'),
    path('list/', views.index, name='list'),
    path('update_mac/', views.update_mac, name='updatemac'),
    path('update_pcname/', views.update_pcname, name='updatepname'),
    path('update_all/', views.update_all, name='updateall'),
    path('update_on_off/', views.update_on_off, name='updateonoff'),
    path('gao/', views.gao, name='gao'),
    path('pcwh/', views.pcwh, name='pcwh'),
    path('pcwh_tj/', views.pcwh_tj, name='pcwh_tj'),
    path('pc_config/', views.pc_config, name='pc_config'),
]
